<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
<div class="wrapper wrapper-content ">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-content">
                    <form class="form-horizontal m-t" id="signupForm">
                        <input id="id" name="id" th:value="${student.id}" type="hidden">
                        <input id="userId" name="userId" th:value="${user.id}" type="hidden">

                        <div class="form-group">
                            <label class="col-sm-3 control-label">学员姓名：</label>
                            <div class="input-group col-sm-8">
                                <input id="realName" name="realName"  maxlength="8" th:value="${user.name}" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">性别：</label>
                            <div class="input-group col-sm-8">
                                <label class="radio-inline">
                                    <input type="radio" name="sex" th:field="*{user.sex}" value="1"/> 男
                                </label>
                                <label class="radio-inline">
                                    <input type="radio" name="sex" th:field="*{user.sex}" value="2"/> 女
                                </label>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">电话：</label>
                            <div class="input-group col-sm-8">
                                <input id="mobile"  maxlength="11" th:value="${user.mobile}" name="mobile" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">邮件：</label>
                            <div class="input-group col-sm-8">
                                <input id="email"  name="email" th:value="${user.email}" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">地址：</label>
                            <div class="input-group col-sm-8">
                                <input id="address"  name="address" th:value="${user.liveAddress}" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">学号：</label>
                            <div class="input-group col-sm-8">
                                <input id="studentNumber" name="studentNumber"  maxlength="15" th:value="${student.studentNumber}"
                                       class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">续费提醒日期：</label>
                            <div  id="feeTipTime"  class="input-group date col-sm-8">
                                <input  name="feeTipTime" readonly="readonly" class="form-control" th:value="${student.feeTipTime==null?user.birth:#dates.format(student.feeTipTime, 'yyyy-MM-dd')}" type="text" />
                                <span class="input-group-addon"><span class="glyphicon glyphicon-remove"></span></span>
                                <span class="input-group-addon"><span class="glyphicon glyphicon-calendar"></span></span>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">班级类型：</label>
                            <div class="input-group col-sm-8">
                                <select name="classType" class="selectpicker" data-live-search="true"
                                        data-live-search-placeholder="搜索" data-actions-box="true" >
                                    <span th:each="classType,iterStat:${classTypeList}">
                                        <option th:value="${classType.value}" th:text="${classType.title}" th:field="*{student.classType}"></option>
                                    </span>
                                </select>
                                <!--<input id="xuefeeType"  maxlength="15" name="xuefeeType" class="form-control" type="text">-->
                            </div>
                        </div>
                        <!--<div class="form-group">-->
                            <!--<label class="col-sm-3 control-label">身份证：</label>-->
                            <!--<div class="input-group col-sm-8">-->
                                <!--<input id="idCard" name="idCard"  maxlength="18" th:value="${student.idCard}" class="form-control"-->
                                       <!--type="text">-->
                            <!--</div>-->
                        <!--</div>-->
                        <div class="form-group">
                            <label class="col-sm-3 control-label">生日：</label>
                            <div  id="birth"  class="input-group date col-sm-8">
                                <input  name="birth" readonly="readonly" class="form-control" th:value="${user.birth==null?user.birth:#dates.format(user.birth, 'yyyy-MM-dd')}" type="text" />
                                <span class="input-group-addon"><span class="glyphicon glyphicon-remove"></span></span>
                                <span class="input-group-addon"><span class="glyphicon glyphicon-calendar"></span></span>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="input-group col-sm-8 col-sm-offset-3">
                                <button type="submit" class="btn btn-primary">提交</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<div th:include="include::footer"></div>
<script type="text/javascript" src="/js/appjs/sys/student/edit.js">
</script>
</body>
</html>
